CREATE TABLE [dbo].[TTTIPO_COCO]
(
[CO_EMPR] [dbo].[TD_VC_002] NOT NULL,
[TI_COMP_COBR] [dbo].[TD_VC_003] NOT NULL,
[DE_COMP_COBR] [dbo].[TD_VC_100] NULL,
[ST_OTDA] [dbo].[TD_VC_001_SINO] NULL CONSTRAINT [DF__TTTIPO_CO__ST_OT__0FAD2F12] DEFAULT ('N'),
[CO_USUA_CREA] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TTTIPO_CO__CO_US__11957784] DEFAULT (suser_sname()),
[FE_USUA_CREA] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TTTIPO_CO__FE_US__12899BBD] DEFAULT (getdate()),
[CO_USUA_MODI] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TTTIPO_CO__CO_US__137DBFF6] DEFAULT (suser_sname()),
[FE_USUA_MODI] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TTTIPO_CO__FE_US__1471E42F] DEFAULT (getdate())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TTTIPO_COCO] WITH NOCHECK ADD CONSTRAINT [CK__TTTIPO_CO__ST_OT__10A1534B] CHECK NOT FOR REPLICATION (([ST_OTDA]='N' OR [ST_OTDA]='S'))
GO
ALTER TABLE [dbo].[TTTIPO_COCO] ADD CONSTRAINT [PK__TTTIPO_C__6B3A10862429290B] PRIMARY KEY CLUSTERED  ([CO_EMPR], [TI_COMP_COBR]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TTTIPO_COCO] ADD CONSTRAINT [FK__TTTIPO_CO__CO_EM__74CF1BA4] FOREIGN KEY ([CO_EMPR]) REFERENCES [dbo].[TMPARA_TESO] ([CO_EMPR])
GO
